package com.happystreet.engine
{
	public class StreetView extends CoreObject
	{
		private var _viewList:Array;
		private var _buttonsLayer:CoreObject;
		
		public var dragObject:CoreObject;
		
		public function StreetView()
		{
			super();
			_viewList = new Array();
			
		}
		/**
		 *注册图层 
		 * @param layer
		 * 
		 */		
		public function registerLayer(layer:CoreObject):void
		{
			this._viewList.push(layer);	
		}
		/**
		 *注册拖拽 
		 * @param obj
		 * 
		 */		
		public function registerForDrag(obj:CoreObject):void
		{
			if(this.dragObject!=null)
			{
				this.dragObject=null;
			}
			
			this.dragObject = obj;
			setDragArea();
		}
		
		
		public function registerButtonsLayer(obj:CoreObject):void
		{
			_buttonsLayer = obj;
			
		}
		/**
		 *设置导航是否有效 
		 * @param value
		 * 
		 */		
		public function setNavigationAvailable(value:Boolean):void
		{
			
		}
		
		private function setDragArea():void
		{
			
		}
	}
}